package com.example.bijiabao.mapper;

import com.example.bijiabao.entity.user;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface userMapper {
    @Select("select * from user")
    List<user> findUser();
    @Select("select * from user where userName=#{userName}")
    user checkuser(String userName);
    @Insert("insert into user(userName,password,email,phone)values(#{userName},#{password},#{email},#{phone})")
    Integer registerUser(user user);
}
